<?php


class Controller extends Smarty
{
    public function __construct()
    {
        $this->setTemplateDir('./views')
            ->setCompileDir('./runtime/views_c')
            ->setConfigDir('./configs')
            ->setCacheDir('./runtime/caches');

        //配置 模板定界符
        $this->left_delimiter = '{{';
        $this->right_delimiter ='}}';

        //配置 缓存控制（开启缓存/缓存时间）
        $this->caching = false;
        $this->cache_lifetime = 30;
    }

    public function __call($name,$arguments){
        header('HTTP/1.0 404 not found');
        echo '<h1>404 NOT FOUND-基类</h1>';
        exit;
    }
}